package com.htgd.gardenexpo.service;

import com.htgd.gardenexpo.entity.WxUserCollect;
import com.baomidou.mybatisplus.extension.service.IService;
import com.htgd.gardenexpo.page.CollectQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 用户收藏表 服务类
 * </p>
 *
 * @author author
 * @since 2024-06-26
 */
public interface WxUserCollectService extends IService<WxUserCollect> {

    Boolean isCollect(String openId, String typeId);

    Boolean isLike(String openId, String typeId,String type);

    WxUserCollect selectOne(String openId, String typeId);

    Long getCollectAmount(String typeId, String type);

    WxUserCollect getIdByOpenIdAndTypeId(String openId, String typeId);

    long getFoodCollectAmount(Integer id);

    /**
     * 按照分类获取我的收藏列表
     * @return
     */
    List<HashMap> getMyCollectList(CollectQuery collectQuery, HttpServletRequest request);

    Long getMyCollectListCount(CollectQuery collectQuery, HttpServletRequest request);
}
